package com.mhz.mvc.test;

import com.mhz.mvc.fc.Action;

public class LoginAction implements Action {
	private User user=new User();
	public String execute() throws Exception {
		String name="mhz";
		String pwd="123";
		System.out.println("userName:"+user.getUserName());
		System.out.println("pwd:"+user.getPwd());
		if(name.equals(user.getUserName()) && pwd.equals(user.getPwd())){
			return "success";
		}
		return "fail";
	}
	
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	
}
